import axios from 'axios'

const request = axios.create({
  baseURL: 'http://localhost:3000',
  timeout: 5000
})

request.interceptors.request.use(
  config => config,
  err => Promise.reject(err)
)

request.interceptors.response.use(
  response => response,
  err => Promise.reject(err)
)

export default request
